package com.th.supcom.pds.impl.common;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.th.supcom.pds.domain.vo.PatientInfo;
import com.th.supcom.pds.domain.vo.PdsSupplyDetailVO;
import com.th.supcom.pds.domain.vo.PdsSupplyVO;

public class MockData
{
    
    public static List <PdsSupplyVO> getPdsSupplyVOs(){
        List <PdsSupplyVO>list=new ArrayList <PdsSupplyVO> ();
        PdsSupplyVO pdsSupply=new PdsSupplyVO();
        pdsSupply.setPrescNo ("1408-00000001");
        pdsSupply.setOutpVisitId (1L);
        pdsSupply.setPatientId ("001");
        pdsSupply.setVisitId (3L);
        pdsSupply.setPatiName ("lily");
        pdsSupply.setPatiSex ("1");
        pdsSupply.setPrescSource (0);
        pdsSupply.setOrderName ("medicine");
        pdsSupply.setPxAmount (10);//总剂数
        pdsSupply.setPxDaily (2);
        pdsSupply.setDosageForm ("冲剂");
        pdsSupply.setDosageFormAmount (2.0);
        pdsSupply.setBoilFlag ("0");
        pdsSupply.setFreqCode ("3");
        pdsSupply.setFreqTimeQty ("8:00;12:00;3:00");
        pdsSupply.setFreqName ("3");
        pdsSupply.setFreqMemo ("一天三次按时服药");
        pdsSupply.setUsageId ("1");
        pdsSupply.setUsageName ("口服");
        pdsSupply.setCheckFlag ("0");
        pdsSupply.setQualifiedType ("0");
        pdsSupply.setCheckDatetime (new Date());
        pdsSupply.setPrescClassfication (0);
        pdsSupply.setPrescType ("1");
        pdsSupply.setEmpIdBegDoct ("110");
        pdsSupply.setEmpNameBegDoct ("james");
        pdsSupply.setOrgIdExec ("01060105");
        pdsSupply.setCreateDate (new Date());
        pdsSupply.setIsInvalid ("0");
        pdsSupply.setAmountSuggest (300.0);
        pdsSupply.setSendOrReturnFlag ("0");
        pdsSupply.setOrgIdHospital ("同济");
        
        //pdsSupply.setPperformedBy ("003");
        //pdsSupply.setPperformedByName ("门诊西药房");
        pdsSupply.setTotalPrice (100.0);
        
        PdsSupplyVO pdsSupply1=new PdsSupplyVO();
        pdsSupply1.setPrescNo ("1408-00000001");
        pdsSupply1.setOutpVisitId (1L);
        pdsSupply1.setPatientId ("001");
        pdsSupply1.setVisitId (3L);
        pdsSupply1.setPatiName ("lily");
        pdsSupply1.setPatiSex ("1");
        pdsSupply1.setPrescSource (0);
        pdsSupply1.setOrderName ("medicine");
        pdsSupply1.setPxAmount (10);//总剂数
        pdsSupply1.setPxDaily (2);
        pdsSupply1.setDosageForm ("冲剂");
        pdsSupply1.setDosageFormAmount (2.0);
        pdsSupply1.setBoilFlag ("0");
        pdsSupply1.setFreqCode ("3");
        pdsSupply1.setFreqTimeQty ("8:00;12:00;3:00");
        pdsSupply1.setFreqName ("3");
        pdsSupply1.setFreqMemo ("一天三次按时服药");
        pdsSupply1.setUsageId ("1");
        pdsSupply1.setUsageName ("口服");
        pdsSupply1.setCheckFlag ("0");
        pdsSupply1.setQualifiedType ("0");
        pdsSupply1.setCheckDatetime (new Date());
        pdsSupply1.setPrescClassfication (0);
        pdsSupply1.setPrescType ("1");
        pdsSupply1.setEmpIdBegDoct ("110");
        pdsSupply1.setEmpNameBegDoct ("james");
        pdsSupply1.setOrgIdExec ("01060105");
        pdsSupply1.setCreateDate (new Date());
        pdsSupply1.setIsInvalid ("0");
        pdsSupply1.setAmountSuggest (300.0);
        pdsSupply1.setSendOrReturnFlag ("0");
        pdsSupply1.setOrgIdHospital ("同济");
        
        //pdsSupply1.setPperformedBy ("门诊西药房");
        list.add (pdsSupply);
        /*list.add (pdsSupply1);*/
        return list;
        
    }

    public static List <PdsSupplyDetailVO> getPdsSupplyDetailsVOs (PdsSupplyVO pdsSupplyVo){
        List <PdsSupplyDetailVO>list=new ArrayList <PdsSupplyDetailVO> ();
        PdsSupplyDetailVO pdsSupplyDetailVO=new PdsSupplyDetailVO();
        pdsSupplyDetailVO.setPrescNo (pdsSupplyVo.getPrescNo ());
        pdsSupplyDetailVO.setPhamName ("青霉素");
        pdsSupplyDetailVO.setPhamStdCode ("W020.011IQ01");
        pdsSupplyDetailVO.setPhamSpec ("500ml@武汉双鹤");
        pdsSupplyDetailVO.setIsGroupOrder ("0");//组合医嘱
        pdsSupplyDetailVO.setSortNumber (1001L);
        pdsSupplyDetailVO.setUnitQty(4.0);
        pdsSupplyDetailVO.setQtySum (20.0);
        pdsSupplyDetailVO.setQtyUnit("支");
        pdsSupplyDetailVO.setCosts (100.0);
        pdsSupplyDetailVO.setFreqTimeQty ("8:00;12:00;6:00");
        pdsSupplyDetailVO.setPackagePrice (2.0);
        pdsSupplyDetailVO.setPerformedBy("门诊西药房");
        
        
        PdsSupplyDetailVO pdsSupply1=new PdsSupplyDetailVO();
        pdsSupply1.setIsGroupOrder ("0");//组合医嘱
        pdsSupply1.setSortNumber (1001L);
        pdsSupply1.setPhamName ("青霉素");
        pdsSupply1.setPhamSpec ("500ml@武汉双鹤");
        pdsSupply1.setUnitQty(4.0);
        pdsSupply1.setQtySum(20.0);
        pdsSupply1.setQtyUnit ("支");
        pdsSupply1.setCosts (100.0);
        pdsSupply1.setFreqCode("1天3次");
        pdsSupply1.setPackagePrice (2.0);
        pdsSupply1.setPerformedBy("门诊西药房");
        list.add (pdsSupplyDetailVO);
        /*list.add (pdsSupply1);*/
        return list;
    }
    
    public static PatientInfo getPatientInfo(){
        PatientInfo patientIno=new PatientInfo ();
        patientIno.setName ("james");
        patientIno.setSex ("man");
        patientIno.setBirthDate (new Date(2003,2,1));
        patientIno.setPatiId ("123");
        patientIno.setBalance (10000.0);
        patientIno.setVisitBeginDate (new Date(2015,2,1));
        patientIno.setChargeType ("own");
        patientIno.setVisitId (3L);
        patientIno.setDeptName ("digestion");
        patientIno.setVisitDay (30);
        patientIno.setBedCode ("2");
        patientIno.setAge ("12");
        return patientIno;
    }
    /** 
     *日志记录器. 
     */
    public static final Logger s_logger = LoggerFactory.getLogger (MockData.class);
    /**
     * 公司版权信息.
     */
    public static final String copyright = "Copyright 2015, Carefx Corporation";

    /**
     * 提交路径.
     */
    public static final String SCC_BRANCH = "$URL$";

    /**
     * 提交日期.
     */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /**
     * 最终修改人员.
     */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /**
     * 最终版本号.
     */
    public static final String SCC_REVISION = "$Revision$";

}
